perform autocorrelation in matlab